﻿namespace Chapter04.DesignMode3 {
    /// <summary>
    /// 纽约原料工厂
    /// </summary>
    public class NYPizzaIngredientFactory : IPizzaIngredientFactory {
        /// <summary>
        /// 创建面团
        /// </summary>
        /// <returns></returns>
        public Dough CreateDough() {
            return new ThinCrustDough();
        }

        /// <summary>
        /// 创建酱料
        /// </summary>
        /// <returns></returns>
        public Sauce CreateSauce() {
            return new MarinaraSauce();
        }

        /// <summary>
        /// 创建蔬菜
        /// </summary>
        /// <returns></returns>
        public Veggie[] CreateVeggies() {
            return [new Garlic(), new Onion(), new Mushroom(), new RedPepper()];
        }

        /// <summary>
        /// 创建意式辣肠
        /// </summary>
        /// <returns></returns>
        public Pepperoni CreatePepperoni() {
            return new SlicedPepperoni();
        }

        /// <summary>
        /// 创建蛤蜊
        /// </summary>
        /// <returns></returns>
        public Clams CreateClam() {
            return new FreshClams();
        }

        /// <summary>
        /// 创建干酪
        /// </summary>
        /// <returns></returns>
        public Cheese CreateCheese() {
            return new Cheese();
        }
    }
}
